import request from '@/utils/request'
// 门诊预结算
export function handlePrepareSettlement(params) {
  return request({
    url: `/clinic_fee/prepareSettlement`,
    method: 'POST',
    params
  })
}
//门诊结算
export function handleSettlement(params) {
    return request({
      url: `/clinic_fee/settlement`,
      method: 'POST',
      params
    })
}
// 门诊结算撤销
export function handleBackSettlement(params) {
    return request({
      url: `/clinic_fee/backSettlement`,
      method: 'POST',
      params
    })
}
// 上传就诊信息
export function handleVisitInfoUpload(params) {
    return request({
      url: `/clinic_fee/visitInfoUpload`,
      method: 'POST',
      params
    })
}
// 上传费用明细
export function handleFeeDetailUpload(params) {
    return request({
      url: `/clinic_fee/feeDetailUpload`,
      method: 'POST',
      params
    })
}
// 费用明细撤销
export function handleBackFeeDetailUpload(params) {
    return request({
      url: `/clinic_fee/backFeeDetailUpload`,
      method: 'POST',
      params
    })
}

// 挂号
export function handleYbRegister(params) {
  return request({
    url: `/register/ybRegister`,
    method: 'POST',
    params
  })
}


// 挂号撤销
export function handleYbBack(params) {
  return request({
    url: `/register/ybBack`,
    method: 'POST',
    params
  })
}

// 医药机构费用结算对总账
export function handleCheckSettlement(params) {
  return request({
    url: `/clinic_fee/checkSettlement`,
    method: 'POST',
    params
  })
}

// 医药机构费用结算对总明细账
export function handleCheckDetailSettlement(params) {
  return request({
    url: `/clinic_fee/checkDetailSettlement`,
    method: 'post',
    params,
    upData:true,
  })
}


// 门诊数据列表
export function orderIndex(params) {
  return request({
    url: `/service_check/orderIndex`,
    method: 'get',
    params,
  })
}

// 医技工作站执行
export function service_checkExecute(params) {
  return request({
    url: `/service_check/execute`,
    method: 'post',
    params,
  })
}


// 医技工作站审核
export function service_checkCheck(params) {
  return request({
    url: `/service_check/check`,
    method: 'post',
    params,
  })
}

// 医技工作站录入
export function saveResult(params) {
  return request({
    url: `/service_check/saveResult`,
    method: 'post',
    params,
  })
}


// 获取住院医技列表
export function getHospitalOrderIndex(params) {
  return request({
    url: `/service_check/hospitalOrderIndex`,
    method: 'get',
    params,
  })
}

// 住院医技执行
export function setExecuteHospitalOrder(params) {
  return request({
    url: `/service_check/executeHospitalOrder`,
    method: 'post',
    params,
  })
}


// 住院医技录入结果
export function setSaveHospitalResult(params) {
  return request({
    url: `/service_check/saveHospitalResult`,
    method: 'post',
    params,
  })
}

// 住院医技审核结果
export function checkHospitalReport(params) {
  return request({
    url: `/service_check/checkHospitalReport`,
    method: 'post',
    params,
  })
}




